<div id="box-wrapper" style="height: auto;">
    <div id="top-left"></div>
    <div id="top-right"></div>
    <div id="top-center"></div>
    <div id="main-left"></div>        
    <div id="main-right"></div>        
    <div id="bottom-left"></div>        
    <div id="bottom-right"></div>        
    <div id="bottom-center"></div>
    <div id="box-content">                    
        <div class="header">
            <div class="logo">
                <div class="inner">
                    <h1>Add Content To Your New Site</h1><br /><span>Add content to the default pages created with your site</span>
                </div>
            </div>                
        </div>
        <p>Ximent, occatem volo ipiendis reius resecti aspedi aute earum facepudis im dolum acipsapis velibus. Itatur? Rorument aut quate eaquam nus rero ommodi tem faccus minti odicat.Tem. Ut rectibus sum ad mos am hil magnatur atecuscid utatum qui sequia voluptas asped etum, consed ut repro et explicia consequisi officiures solescia sequae omnit enis ipitae nimi, nulligenia </p>
        <div class="form wide">
            <form id="form-back-to-previous" method="post" action="<?php echo $this->createUrl('/FrontDesk/site/selectTemplate'); ?>">
                
            </form>
            <?php
            $form=$this->beginWidget('CActiveForm', array(
                'id'=>'form-add-content',
                'action'=>array('/FrontDesk/site/uploadLogo'),
                'enableClientValidation' => true,
                'clientOptions' => array(
                    'validateOnSubmit'=>true,
/*                    'afterValidate'=>"js:function(form,data,hasError){
                        return true;
                    }"*/
                ),
            ));
            ?>
                <?php echo $siteInfo->showAttributesHiddenFields(array('about_us','contact_company_name','contact_company_email','contact_address','contact_city','contact_state','contact_zipcode','contact_phone','add_a_map')); ?>
                <ul class="items no-radio">
                    <li>
                        <div class="inner">
                            <a href="#">About Us</a>
                            <div class="link">
                                <span class="hiding"></span>
                                <a href="#">Add Information to Site</a>
                            </div>
                            <div class="expand-panel">
                                <?php echo $form->textArea($siteInfo,'about_us',array('class'=>'site-info-field')); ?>
                                <?php echo $form->error($siteInfo,'about_us'); ?>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="inner">
                            <a href="#">Contact Us</a>
                            <div class="link">
                                <span class="hiding"></span>
                                <a href="#">Add Information to Site</a>
                            </div>
                            <div class="expand-panel">
                                <div class="row">
                                    <label>Company Name:</label>
                                    <div class="textbox">
                                        <span>
                                            <?php echo $form->textField($siteInfo,'contact_company_name',array('class'=>'site-info-field')); ?>
                                        </span>
                                    </div>
                                    <span class="required">*</span>
                                    <?php echo $form->error($siteInfo,'contact_company_name'); ?>
                                </div>
                                <div class="row">
                                    <label>Company Email:</label>
                                    <div class="textbox">
                                        <span>
                                            <?php echo $form->textField($siteInfo,'contact_company_email',array('class'=>'site-info-field')); ?>
                                        </span>
                                    </div>
                                    <span class="required">*</span>
                                    <?php echo $form->error($siteInfo,'contact_company_email'); ?>                                
                                </div>
                                <div class="row">
                                    <label>Address:</label>
                                    <div class="textbox">
                                        <span>
                                            <?php echo $form->textField($siteInfo,'contact_address',array('class'=>'site-info-field')); ?>
                                        </span>
                                    </div>
                                    <?php echo $form->error($siteInfo,'contact_address'); ?>                                
                                </div>
                                <div class="row">
                                    <label>City:</label>
                                    <div class="textbox">
                                        <span>
                                            <?php echo $form->textField($siteInfo,'contact_city',array('class'=>'site-info-field')); ?>
                                        </span>
                                    </div>
                                    <?php echo $form->error($siteInfo,'contact_city'); ?>                                
                                </div>
                                <div class="row">
                                    <label>State:</label>
                                    <div class="textbox">
                                        <span>
                                            <?php echo $form->textField($siteInfo,'contact_state',array('class'=>'site-info-field','style'=>'width: 145px;')); ?>
                                        </span>
                                    </div>
                                    <label style="width:75px">Zip Code :</label>
                                    <div class="textbox">
                                        <span>
                                            <?php echo $form->textField($siteInfo,'contact_zipcode',array('class'=>'site-info-field','style'=>'width: 65px;')); ?>
                                        </span>
                                    </div>
                                </div> 
                                <div class="row">
                                    <label>Phone Number:</label>
                                    <div class="textbox">
                                        <span>
                                            <?php echo $form->textField($siteInfo,'contact_phone',array('class'=>'site-info-field')); ?>
                                        </span>
                                    </div>                            
                                </div>
                                <div class="row checkboxes">
                                    <label>Add a Map:</label>                                            
                                    <?php echo $form->checkBox($siteInfo,'add_a_map',array('class'=>'site-info-field')); ?>                                                
                                </div>                                            
                            </div>
                        </div>
                    </li>
                </ul>
                <div class="row buttons">
                    <a href="#" class="question-button"></a>
                    <div class="button">
                        <span>
                            <input id="btn-submit" type="submit" value="Step [3 of 6]" />
                        </span>
                    </div>
                    <div class="button">
                        <span>
                            <a href="#" id="lnk-back-to-previous">Back</a>
                        </span>
                    </div>                            
                </div>
                <script type="text/javascript">
                $('#lnk-back-to-previous').click(function(){
                    $('#form-add-content .site-info-field').each(function(){
                        var ele = $(this).clone();
                        ele.val($(this).val());
                        ele.appendTo($('#form-back-to-previous'));
                    });
                    $('#form-back-to-previous').submit();
                    return false;    
                }); 
                </script>
            <?php $this->endWidget(); ?>
        </div>    
    </div>
</div>